| Module | ActiveRecord::Acts::Voteable::ClassMethods |
| In: |
vendor/plugins/acts_as_voteable/lib/acts_as_voteable.rb
|
# File vendor/plugins/acts_as_voteable/lib/acts_as_voteable.rb, line 57
57: def acts_as_voteable
58: has_many :votes, :as => :voteable, :dependent => :destroy
59: has_many :up_votes, :as => :voteable
60: has_many :down_votes, :as => :voteable
61:
62: extend ActiveRecord::Acts::Voteable::SingletonMethods
63: include ActiveRecord::Acts::Voteable::InstanceMethods
64: end